#pragma once

#include <sys/time.h>

class TimeCallbackImpl{
public:
	TimeCallbackImpl(){
		timeval tv;
		gettimeofday(&tv, NULL);
		_ID = tv.tv_sec*1000+(tv.tv_usec/1000);
	}
	virtual TimeCallbackImpl();
	virtual int callback();

	double Get_Interval() const{
		return _time;
	}

	void Set_Interval(double time){
		_time = time;
	} 

	int GetID() const{
		return _ID;
	}
private:
	int _ID;
	double _time;
};
